export default {
  namespaced: true,
  state: {
    isDialog: false,
    ruleForm: {
      cinemaId: '',
      hallName: ''
    },
    isAdd: true
  },
  mutations: {
    changeIsDialog (state, layload) {
      state.isDialog = layload
    },
    changeIsAdd (state, layload) {
      state.isAdd = layload
    },
    changeRuleForm (state, layload) {
      state.ruleForm = layload
    }
  },
  actions: {
    changeIsDialog ({ commit }, layload) {
      commit('changeIsDialog', layload)
    },
    changeIsAdd ({ commit }, layload) {
      commit('changeIsAdd', layload)
    },
    changeRuleForm ({ commit }, layload) {
      commit('changeRuleForm', layload)
    }
  }
}
